package com.xiaojie.demo.mapper;

import com.xiaojie.demo.entity.Account;
import com.xiaojie.summer.annotation.Mapper;

import java.util.List;

/**
 * @author Nick
 * @date 2021/5/24
 * @description
 */
@Mapper
public interface AccountMapper {
    /**
     * 根据卡号获取账号对象
     *
     * @param account
     * @return
     */
    List<Account> queryAccountByCardNo(Account account);

    /**
     * 根据卡号更新账户信息
     *
     * @param account
     * @return
     */
    int updateAccountByCardNo(Account account);
}
